package com.fen;

import org.springframework.context.annotation.AnnotationConfigApplicationContext;

/**
 * @description:
 * @author: lrf
 * @create: 2019-09-02
 **/
public class Main {

    public static void main(String[] args) {
        AnnotationConfigApplicationContext context
                = new AnnotationConfigApplicationContext(AopConfig.class);

        UserAnnotionService userAnnotionService = context.getBean(UserAnnotionService.class);
        UserMethodService userMethodService = context.getBean(UserMethodService.class);

        userAnnotionService.add();
        userMethodService.add();

        context.close();

    }
}
